function R(){
	window.location.reload();
}

function client2js(N,param){
	setTimeout("R()",1000);
}

function config(param){
	window.lemon.js2client(2,"navigate.html?user_id="+user_id);
}

function information(param){
	window.lemon.js2client(2,"information.html?user_id="+user_id);
}

function lookaround(param){
	window.lemon.js2client(2,"lookaround.html?user_id="+user_id);
}

function pome(param){
	window.lemon.js2client(2,"pome.html?user_id="+user_id);
}

function sendtofriends(param){
	window.lemon.js2client(2,"showfriends.html?user_id="+user_id);
}

function deletefriends(param){
	delete_friend = !delete_friend;
}

function cancel(param){
	window.lemon.js2client(2,"contact.html?user_id="+user_id);
}

function sendsms(param){
	var m = "";
	for(m = 0 ; m < rlt.size();m++){
		if(checked[m].search(/true/) != -1){
			
		}
	}
	var numbers = new String(selectednumber.toString());
	var numbers1 = new String(numbers.replace(/,/g,""));
	var numbers2 = new Array();
	numbers2 = numbers1.split(" ");
	var i = "";
	for(i = 0; i < numbers2.length - 1;i++){
		window.lemon.js2client(11,numbers2[i]);
	}
	window.lemon.js2client(16,"感谢你让更多朋友成为易人。");
//	window.lemon.js2client(2,"contact.html?user_id="+user_id);
}

function returnpage(param){
	window.lemon.js2client(15,param);
    window.history.back();
}

function deletedone(param){
	delete_friend = !delete_friend;
}

function mark(param){
	window.lemon.httpGet(server_address+"/tom/servlet/C2S1addFriends?cmd=1&user_id="+user_id+"&_id="+_id);
	window.lemon.js2client(16,"好了，你已经是他/她的fans了，现在可以点击铅笔给他/她留言了。");
//	window.lemon.js2client(2,"contact.html?user_id="+user_id);
}

$(document).ready(function(){
	$(window).scroll(function() {
	    if(document.body.scrollTop + document.body.clientHeight ==document.body.scrollHeight){
	    	//alert("到达页面底部");
	    }
	  });
});

var friends_index = new Array();
var farfriends_index = new Array();
var user_id;
var nick_name;
var _id;


